package com.tbit.api;

import com.tbit.manager.api.DepositApplyApi;
import com.tbit.manager.api.dto.DepositApplyDTO;
import com.tbit.uqbike.constant.OperaPswConstant;
import com.tbit.uqbike.constant.UserConstant;
import com.tbit.uqbike.enums.SystemCodeEnum;
import com.tbit.uqbike.manager.exception.BaseException;
import com.tbit.uqbike.service.business.ReturnDepositService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

/**
 * 押金退款申请实现
 *
 * @author ：zhangtianyou
 * @since 2024/11/22
 */
@RestController
@Slf4j
public class DepositApplyApiImpl implements DepositApplyApi {

    @Autowired
    private ReturnDepositService returnDepositService;
    @Override
    public void manualDepositRefund(DepositApplyDTO depositApplyDTO) {
        returnDepositService.manualDepositRefund(depositApplyDTO.getUserId(), depositApplyDTO.getRemark(),
                depositApplyDTO.getReturnTime(),depositApplyDTO.getLoginUserAccountUserId(), depositApplyDTO.getLoginUserPhone(),
                depositApplyDTO.getLoginUserName());
    }
}
